<div class="alert alert-success alert-dismissable">
    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
    <%= message %>
</div>
<div class="panel panel-info">
<div class="panel-heading"><h4 class="panel-title">友情链接管理</h4></div>
<form action="/friends/upsert/<%=_id?_id:'nil'%>" method="post" class="form-horizontal" id="uform" role="form">
     <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">名称</label>

        <div class="col-sm-10">
            <input type="text" class="form-control" name="name" placeholder="请输入分类名称">
        </div>
    </div>
     <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">地址</label>

        <div class="col-sm-10">
            <input type="text" class="form-control" name="link" placeholder="请输入网址">
        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default">保存</button>
            <a href="/friends/list/1">友情链接</a>
        </div>
    </div>

</form>
</div>
 <script>
     var beans = <%-beans%>;
     $(function(){
        $("form#uform").helpform({'beans':beans});
     });
 </script>

